
#ifndef _MEMBER_BTUBE_H_
#define _MEMBER_BTUBE_H_

#include <BTube>

#define tube_member(tube)		((member_BTube*)((BTube*)tube)->_ptr)

namespace BWE
{
	class member_BTube
	{
	public:
		member_BTube(BTube* tube);
		~member_BTube();

		void prepare();
		void rebuild();

		BTube*		boss;
		BReal		height;
		BReal		radius;
		BReal		thickness;
		int			sides;
		int			heightSegments;
		int			radiusSegments;
		BRealArray	sines;
		BRealArray	coses;
		int			flankSize;
		int			topBegin;
		int			topSize;
		int			bottomBegin;
		int			bottomSize;
	};
}

#endif